//
//  AFFRichTextBase.m
//  AnyfishApp
//
//  Created by Bob Lee on 14-4-18.
//  Copyright (c) 2014年 Anyfish. All rights reserved.
//

#import "AFFRichTextBase.h"

@implementation AFFRichTextBase

- (id)init
{
    self = [super init];
    if (self) {
        self.isResponseTouch = NO;
    }
    return self;
}

- (void)replaceTextWithAttributedString:(NSMutableAttributedString*) attributedString
{
    [attributedString addAttribute:kAttributeName value:self range:self.range];
}

- (BOOL)drawRunWithRect:(CGRect)rect
{
    return NO;
}

- (BOOL)drawRunWithView:(UIView*)view rect:(CGRect)rect {
    return NO;
}

- (void)drawHLightBackground:(CGRect)rect context:(CGContextRef)context{
    if(self.isHLight){
        CGContextSetFillColorWithColor(context, kRichColor_HLight_Alpha.CGColor);
        CGContextFillRect(context, rect);
    }
}

@end
